package com.zzw.concurrency;

import java.util.HashMap;
import java.util.Map;

public class HashMapTest {

    public static void main(String[] args) {
        Map<Integer ,String> map = new HashMap<>(2);
        map.put(5,"C");
        new Thread(){
            public void run(){
                map.put(7,"B");
            }
        }.start();
        new Thread(){
            public void run(){
                map.put(3,"A");
            }
        }.start();
        System.out.println(map.get(11));
    }
}
